﻿<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:local="clr-namespace:Eternal.DataVisualization.WPF.WPF"
                    >
    <ControlTemplate x:Key="LineSeries">
        <StackPanel Margin="5,2,5,2" Orientation="Horizontal">
            <Grid>
                <Ellipse Height="7" Width="7" Fill="{Binding SegmentBrush}"/>
                <Path Data="F1M1061.62,377.447L1079.56,313.447 1085.64,313.447 1067.74,377.447 1061.62,377.447z" Stretch="Uniform" Fill="{Binding SegmentBrush}" Width="16" Height="16" Margin="0,0,0,0" RenderTransformOrigin="0.5,0.5">
                    <Path.RenderTransform>
                        <TransformGroup>
                            <TransformGroup.Children>
                                <RotateTransform Angle="74" />
                                <ScaleTransform ScaleX="-1" ScaleY="1" />
                            </TransformGroup.Children>
                        </TransformGroup>
                    </Path.RenderTransform>
                </Path>
            </Grid>
            <TextBlock  Margin="5,2,5,2" FontSize="14" Text="{Binding LegendContent}"/>
        </StackPanel>
    </ControlTemplate>
    <ControlTemplate x:Key="ColumnSeries">
        <StackPanel Margin="5" Orientation="Horizontal">
            <Rectangle Height="10" Width="6" Fill="{Binding SegmentBrush}" VerticalAlignment="Center"/>
            <TextBlock Margin="5,0,5,0" FontSize="14" Text="{Binding LegendContent}"/>
        </StackPanel>
    </ControlTemplate>

    <ControlTemplate x:Key="AreaSeries">
        <StackPanel Margin="5" Orientation="Horizontal">
            <Path Data="M40.352979,12.654L54.153998,35.171 9.8459996,35.171 19.652145,22.458701 28.005181,31.176101z M4.2201395,4.2200537L4.2201395,41.846038 59.779998,41.846038 59.779998,4.2200537z M0,0L63.999999,0 63.999999,46.066003 0,46.066003z" Stretch="Uniform" Fill="{Binding SegmentBrush}" Width="20" Height="20" Margin="0,0,0,0" RenderTransformOrigin="0.5,0.5"/>
            <TextBlock Margin="5,0,5,0" FontSize="14" Text="{Binding LegendContent}"/>
        </StackPanel>
    </ControlTemplate>

    <ControlTemplate x:Key="StepLineSeries">
        <StackPanel Margin="5" Orientation="Horizontal">
            <Path Fill="{Binding SegmentBrush}" Data="M37.477307,5.6600046L37.747307,5.673997 37.88731,5.673997 37.88731,5.6810009C40.557163,5.8870095 42.667,8.1170058 42.667,10.844011 42.667,13.707003 40.347218,16.02901 37.477307,16.02901L37.157383,16.013004 37.157383,16.02901 31.007797,16.02901 16.068922,31.038017C15.108907,32.104011,14.049047,32.299003,13.589118,32.331016L13.589118,32.336006 13.469132,32.336006 13.349145,32.336006 5.1596663,32.336006C2.3098938,32.336006 0,30.025016 0,27.174001 0,24.32401 2.3098938,22.014013 5.1596663,22.014013L10.589333,22.014013 14.610081,18.008118 14.610081,9.5549917C14.610081,8.3489909,15.589914,7.3719907,16.799708,7.3719906L18.459423,7.3719906C19.669216,7.3719907,20.639052,8.3489909,20.639052,9.5549917L20.639052,12.00142 25.188267,7.4690105C26.4881,5.6739967,28.048048,5.6739967,28.048048,5.673997L31.007797,5.673997 36.287449,5.673997 37.217438,5.673997z M17.632061,0C19.283171,0 20.624071,1.4559979 20.624071,3.2499955 20.624071,5.0439935 19.283171,6.4989917 17.632061,6.4989915 15.980952,6.4989917 14.640051,5.0439935 14.640051,3.2499955 14.640051,1.4559979 15.980952,0 17.632061,0z" Stretch="Uniform" Width="16" Height="16" Margin="0,0,0,0" RenderTransformOrigin="0.5,0.5"/>
            <TextBlock Margin="5,0,5,0" FontSize="14" Text="{Binding LegendContent}"/>
        </StackPanel>
    </ControlTemplate>

</ResourceDictionary>